package com.carpedil.shirodemo.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.carpedil.shirodemo.system.model.Dept;

import java.util.List;

/**
 * 服务类
 *
 * @author carpedil
 * @since 2021-01-05
 */
public interface IDeptService extends IService<Dept> {
  List<Dept> selectAllDeptTree();

  List<Dept> getAllDeptTreeAndRoot();

  List<Dept> getChildListByDeptId(Integer parentId);

  void swapSort(Integer currentId, Integer swapId);

  void insert(Dept dept);

  void deleteDeptById(Integer id);

  void updateDept(Dept dept);
}
